import java.util.MissingResourceException;
import java.util.ResourceBundle;

public class CLanguage
{

    CLanguage()
    {
    }

    public static String getString( String key )
    {
        ResourceBundle RESOURCE_BUNDLE = null;

        try
        {
            RESOURCE_BUNDLE.clearCache();
            String language = CProperties.language;
            String BUNDLE_NAME = language; //$NON-NLS-1$
            RESOURCE_BUNDLE = ResourceBundle.getBundle( BUNDLE_NAME );
            return RESOURCE_BUNDLE.getString( key );
        }
        catch ( MissingResourceException e )
        {
            return '!' + key + '!';
        }
    }
}
